/**
 * 搜索父母亲
 * @param {type} data
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doSearchParentList(data, callback, loading) {
    var url = $.domain + "/Pigeon/doSearchParentList";
    sApi(url, data, callback, loading);
}

/**
 * 获取信鸽列表
 * @param {type} data
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doGetPigeonList(data, callback, loading) {
    var url = $.domain + "/Pigeon/doGetPigeonList";
    sApi(url, data, callback, loading);
}

/**
 * 获取信鸽添加表单
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doGetAddPigeonForm(callback, loading) {
    var url = $.domain + "/Pigeon/doGetAddPigeonForm";
    sApi(url, {}, callback, loading);
}

/**
 * 添加信鸽
 * @param {type} data
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doAddPigeon(data, callback, loading) {
    var url = $.domain + "/Pigeon/doAddPigeon";
    sApi(url, data, callback, loading);
}


/**
 * 获取信鸽编辑表单
 * @param {type} id
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doGetEditPigeonForm(id, callback, loading) {
    var data = {
        "id": id
    };
    var url = $.domain + "/Pigeon/doGetEditPigeonForm";
    sApi(url, data, callback, loading);
}

/**
 * 编辑信鸽
 * @param {type} data
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doEditPigeon(data, callback, loading) {
    var url = $.domain + "/Pigeon/doEditPigeon";
    sApi(url, data, callback, loading);
}

/**
 * 删除信鸽
 * @param {type} id
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doDelPigeon(id, callback, loading) {
    var data = {
        "id": id
    };
    var url = $.domain + "/Pigeon/doDelPigeon";
    sApi(url, data, callback, loading);
}

/**
 * 查看信鸽明细
 * @param {type} id
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doGetDetailPigeon(id, callback, loading) {
    var data = {
        "id": id
    };
    var url = $.domain + "/Pigeon/doGetDetailPigeon";
    sApi(url, data, callback, loading);
}

/**
 * 生成族谱
 * @param {type} id
 * @param {type} type
 * @param {type} callback
 * @param {type} loading
 * @returns {undefined}
 */
function doGetPRImg(id, type, callback, loading) {
    var data = {
        "id": id,
        "type": type
    };
    var url = $.domain + "/Pigeon/doGetPRImg";
    sApi(url, data, callback, loading);
}


